package com.springbootnetty.handler;


import com.springbootnetty.dto.InBody;
import com.springbootnetty.entity.TbRegister;
import com.springbootnetty.jt808.BaseHead;
import org.springframework.stereotype.Component;

/**
 * 01 00注册
 *256
 * */
@Component
@BenType(0x0100)
public class RegisterHandler extends BaseHandler {
    @Override
    public byte[] handle(InBody inBody, BaseHead baseHead) {
        System.out.println("注册。。。。。。。。。。。。。。。。。");
        byte[] resp = new TbRegister().resp(inBody.getNewByte());
        return resp;
    }
}
